package com.pandora.credit.service;

import java.util.Map;

/**
 * @author developer
 */
public interface CommonService {
    /**
     * getCreditFromMongoDb
     * @param type type
     * @param length length
     * @param nextIdP nextIdP
     * @param hot hot
     * @param bank bank
     * @param recommend recommend
     * @param version version
     * @param platform platform
     * @param loanType loanType
     * @param frontNumber frontNumber
     * @return Map<String, Object>
     */
    Map<String, Object> getCreditFromMongoDb(int type, int length, int nextIdP, int hot,
                                                    long bank, int recommend, String version,
                                                    String platform, long loanType, int frontNumber);

    /**
     * getCustomerIdByMobile
     * @param mobile mobile
     * @return long
     */
    long getCustomerIdByMobile(String mobile);

    /**
     * getHistories
     * @param dbType dbType
     * @param customerId customerId
     * @param pageLength pageLength
     * @param updateTime updateTime
     * @return Map<String, Object>
     */
    Map<String, Object> getHistories(int dbType, long customerId, int pageLength, String updateTime);

    /**
     * getAppStatusLimit
     * @param ua ua
     * @return int
     */
    int getAppStatusLimit(String ua);
}
